package models

import (
	"time"
)

type ImportXhs struct {
	ID                      int64     `gorm:"column:id;primary_key" json:"id"`
	Media                   string    `gorm:"column:media" json:"media"`
	XhsType                 string    `gorm:"column:xhs_type" json:"xhs_type"`
	Email                   string    `gorm:"column:email" json:"email,omitempty"`
	OpenID                  string    `gorm:"column:open_id" json:"open_id,omitempty"`
	Date                    time.Time `gorm:"column:date" json:"date,omitempty"`
	ExamineStatus           string    `gorm:"column:examine_status" json:"examine_status,omitempty"`
	BrandAccount            string    `gorm:"column:brand_account" json:"brand_account,omitempty"`
	AccountName             string    `gorm:"column:account_name" json:"account_name,omitempty"`
	BusinessLicense         string    `gorm:"column:business_license" json:"business_license,omitempty"`
	Industry                string    `gorm:"column:industry" json:"industry,omitempty"`
	SecondIndustry          string    `gorm:"column:second_industry" json:"second_industry,omitempty"`
	Sale                    string    `gorm:"column:sale" json:"sale,omitempty"`
	FirstBusiness           string    `gorm:"column:first_business" json:"first_business,omitempty"`
	SecondBusiness          string    `gorm:"column:second_business" json:"second_business,omitempty"`
	Channel                 string    `gorm:"column:channel" json:"channel,omitempty"`
	Company                 string    `gorm:"column:company" json:"company,omitempty"`
	SubjectName             string    `gorm:"column:subject_name" json:"subject_name,omitempty"`
	Group                   string    `gorm:"column:group" json:"group,omitempty"`
	Remark                  string    `gorm:"column:remark" json:"remark,omitempty"`
	CreatedAt               time.Time `gorm:"column:created_at" json:"created_at"`
	LogID                   int64     `gorm:"column:log_id" json:"log_id,omitempty"`
	KpiIndustry             string    `gorm:"column:kpi_industry" json:"kpi_industry,omitempty"`
	ChildID                 string    `gorm:"column:child_id" json:"child_id,omitempty"`
	BrandAccountID          string    `gorm:"column:brand_account_id" json:"brand_account_id,omitempty"`
	Import                  string    `gorm:"column:import" json:"import,omitempty"`
	UID                     int64     `gorm:"column:uid" json:"uid,omitempty"`
	TrackLaunchName         string    `gorm:"column:track_launch_name" json:"track_launch_name,omitempty"`
	Province                string    `gorm:"column:province" json:"province,omitempty"`
	IsOld                   int       `gorm:"column:is_old" json:"is_old"`
	OpenMediumName          string    `gorm:"column:open_medium_name" json:"open_medium_name,omitempty"`
	UpdateMediumName        string    `gorm:"column:update_medium_name" json:"update_medium_name,omitempty"`
	NameCore                string    `gorm:"column:name_core" json:"name_core"`
	Medium                  string    `gorm:"column:medium" json:"medium,omitempty"`
	OldSale                 string    `gorm:"column:old_sale" json:"old_sale,omitempty"`
	IsTransfer              int8      `gorm:"column:is_transfer" json:"is_transfer"`
	OldCompany              string    `gorm:"column:old_company" json:"old_company,omitempty"`
	OldFirstBusiness        string    `gorm:"column:old_first_business" json:"old_first_business,omitempty"`
	OldSecondBusiness       string    `gorm:"column:old_second_business" json:"old_second_business,omitempty"`
	DropID                  uint32    `gorm:"column:drop_id" json:"drop_id"`
	AutomaticData           int8      `gorm:"column:automatic_data" json:"automatic_data"`
	AutomaticDataNotUpdate  int       `gorm:"column:automatic_data_not_update" json:"automatic_data_not_update,omitempty"`
	UpdatedAt               time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"`
	IsRobot                 int8      `gorm:"column:is_robot" json:"is_robot"`
	MediaImportClientStatus string    `gorm:"column:media_import_client_status" json:"media_import_client_status"`
	SystemCustomerStatus    string    `gorm:"column:system_customer_status" json:"system_customer_status,omitempty"`
	RechargeDeadline        int64     `gorm:"column:recharge_deadline" json:"recharge_deadline,omitempty"`
	FirstBusiness20255      string    `gorm:"column:first_business_2025_5" json:"first_business_2025_5,omitempty"`
	SecondBusiness20255     string    `gorm:"column:second_business_2025_5" json:"second_business_2025_5,omitempty"`
	CustomerStatus          string    `gorm:"column:customer_status" json:"customer_status,omitempty"`
	IsOperated              string    `gorm:"column:is_operated" json:"is_operated,omitempty"`
	ConsumptionOrEqual2K    string    `gorm:"column:consumption_or_equal_2k" json:"consumption_or_equal_2k,omitempty"`
	IsConsumed2024          string    `gorm:"column:is_consumed_2024" json:"is_consumed_2024"`
	LargeMediumSmall2512    string    `gorm:"column:large_medium_small_25_1_2" json:"large_medium_small_25_1_2,omitempty"`
	LargeMediumSmall2534    string    `gorm:"column:large_medium_small_25_3_4" json:"large_medium_small_25_3_4,omitempty"`
	AverageDaily2556        string    `gorm:"column:average_daily_25_5_6" json:"average_daily_25_5_6,omitempty"`
	PolicyLabel2556         string    `gorm:"column:policy_label_25_5_6" json:"policy_label_25_5_6,omitempty"`
	PolicyLabel2578         string    `gorm:"column:policy_label_25_7_8" json:"policy_label_25_7_8,omitempty"`
	AverageDailySale2556    string    `gorm:"column:average_daily_sale_25_5_6" json:"average_daily_sale_25_5_6,omitempty"`
	AverageDailySale2578    string    `gorm:"column:average_daily_sale_25_7_8" json:"average_daily_sale_25_7_8,omitempty"`
	IsNewCustomer           string    `gorm:"column:is_new_customer" json:"is_new_customer"`
	NewCustomerAffiliation  string    `gorm:"column:new_customer_affiliation" json:"new_customer_affiliation,omitempty"`
	FirstConsumptionDate    string    `gorm:"column:first_consumption_date" json:"first_consumption_date,omitempty"`
	SignFrame               string    `gorm:"column:sign_frame" json:"sign_frame"`
	SignatureGroupName      string    `gorm:"column:signature_group_name" json:"signature_group_name,omitempty"`
	SignGroup               string    `gorm:"column:sign_group" json:"sign_group,omitempty"`
	SignMonth               string    `gorm:"column:sign_month" json:"sign_month,omitempty"`
}

// TableName 指定数据库表名
func (table *ImportXhs) TableName() string {
	return "import_xhs"
}
